import Layout from '@neu/biz-core/layout'

export default [
  {
    path: '/assets',
    name: 'assets',
    redirect: 'noRedirect',
    alwaysShow: true,
    meta: {
      title: '资产管理',
      icon: 'fixed',
      module: 'dcam',
      code: 'menu_assets'
    },
    component: Layout,
    children: [
      {
        path: 'kj/stats',
        name: 'standingbook_kj_stats',
        meta: {
          title: '资产统计（科技）',
          icon: 'right-arrow',
          module: 'dcam',
          belongs: 'kj',
          categories: '1,2',
          code: 'menu_kj_assets_stats'
        },
        component: () => import('@neu/dcam-ui/views/stats')
      },
      {
        path: 'kj/myAsset',
        name: 'standingbook_kj_myAsset',
        meta: {
          title: '我的资产（科技）',
          icon: 'right-arrow',
          module: 'dcam',
          belongs: 'kj',
          categories: '1,2',
          code: 'menu_kj_assets_myAssetMaintenance'
        },
        component: () => import('@neu/dcam-ui/views/myAsset')
      },
      {
        path: 'sl/myAsset',
        name: 'standingbook_zl_myAsset',
        meta: {
          title: '我的资产（总行）',
          icon: 'right-arrow',
          module: 'dcam',
          belongs: 'sl',
          categories: '1,2',
          code: 'menu_zl_assets_myAssetMaintenance'
        },
        component: () => import('@neu/dcam-ui/views/myAsset')
      },
      {
        path: 'maintenance/reminder',
        name: 'assets_maintenance_reminder',
        hidden: true,
        meta: {
          title: '维保提醒',
          icon: 'right-arrow',
          module: 'dcam'
        },
        component: () => import('@neu/dcam-ui/views/maintenance/expirationReminder')
      },
      {
        path: 'manufacturer',
        name: 'assets_manufacturer',
        meta: {
          title: '供应商档案',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_assets_manufacturer'
        },
        component: () => import('@neu/dcam-ui/views/manufacturer')
      },
      {
        path: 'sl/contract',
        name: 'assets_sl_contract',
        meta: {
          title: '合同档案(总行)',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_assets_sl_contract',
          belongs: 'sl'
        },
        component: () => import('@neu/dcam-ui/views/contract')
      },
      {
        path: 'kj/contract',
        name: 'assets_kj_contract',
        meta: {
          title: '合同档案(科技)',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_assets_kj_contract',
          belongs: 'kj'
        },
        component: () => import('@neu/dcam-ui/views/contract')
      },
      {
        path: 'sl/product',
        name: 'assets_sl_product',
        meta: {
          title: '产品档案(总行)',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_assets_sl_product',
          belongs: 'sl'
        },
        component: () => import('@neu/dcam-ui/views/product')
      },
      {
        path: 'kj/product',
        name: 'assets_kj_product',
        meta: {
          title: '产品档案(科技)',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_assets_kj_product',
          belongs: 'kj'
        },
        component: () => import('@neu/dcam-ui/views/product')
      },
      {
        path: 'cards',
        name: 'assets_cards',
        meta: {
          title: '卡片管理',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_assets_cards'
        },
        component: () => import('@neu/dcam-ui/views/ahassetcard')
      },
      {
        path: 'maintenance',
        name: 'assets_maintenance',
        meta: {
          title: '维保提醒',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_assets_maintenance'
        },
        component: () => import('@neu/dcam-ui/views/maintenance/expirationReminder')
      },
      {
        path: 'storehouse',
        name: 'dcam_storehouse',
        meta: {
          title: '仓库管理',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_dcam_storehouse'
        },
        component: () => import('@neu/dcam-ui/views/storehouse')
      },
      {
        path: 'stockwarning',
        name: 'assets_stockwarning',
        meta: {
          title: '库存预警',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_assets_stockwarning'
        },
        component: () => import('@neu/dcam-ui/views/stockwarning')
      }
    ]
  }
]
